import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import LoginPage from '@/components/LoginPage'
import Register from "@/components/Register";
import MainPage from "../components/MainPage";
import MyGallery from "../components/MyGallery";
import MyMissions from "../components/MyMissions";
import ImageMarking from "../components/ImageMarking";

Vue.use(Router)

export default new Router({
  routes: [
    // 首页是登录页面
    {
      path: '/',
      name: 'LoginPage1',
      component: LoginPage
    },
    {
      path: '/hello',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/LoginPage',
      component: LoginPage,
      name: 'LoginPage'
    },
    {
      path: '/RegisterPage',
      component: Register,
      name: 'RegisterPage'
    },
    {
      path: '/MainPage',
      component: MainPage,
      name: 'MainPage'
    },
    {
      path: '/MyGallery',
      component: MyGallery,
      name: 'MyGallery'
    },
    {
      path: '/MyMissions',
      component: MyMissions,
      name: 'MyMissions'
    },
    {
      path: '/ImageMarking',
      component: ImageMarking,
      name: 'ImageMarking'
    }
  ]
})
